package cn.legend.travel.tour.team.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user_order_table")
public class Order {
    @TableId(type = IdType.AUTO)
    private String id;
    @ApiModelProperty("用户ID")
    private Long userId;
    @ApiModelProperty("产品ID")
    private Long productId;
    @ApiModelProperty("产品状态")
    private Integer state;
    @ApiModelProperty("购买产品数量")
    private Integer productCount;
    @ApiModelProperty("订单生成时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
    @ApiModelProperty("订单修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

}
